<form action="statics_from.manage.php" method="get" id="form_p_list" onsubmit="return ajax_list();">
<table width="680" border="0" cellspacing="0" cellpadding="0" class="from_table">
  <tr>
<th colspan="3" style=" text-align:left; padding-left:10px;">
	<a href="javascript:;" onclick="ajax_link();"><tpl> $langSysSParticularFlux </tpl></a> | <tpl> $langSysSParticularFluxDirection </tpl>
	<input type="hidden" name="action" value="trend" />
	</th></tr>
	<tr>
	
	<th>*  <tpl> $langSysSPleaseFillInURL </tpl></th>
	<td width="400">
	<input name="url1" id="url1" class="zhl_txtinput_short"  type="text" value="<tpl> $url1 </tpl>" />+
	<input name="url2" id="url2" class="zhl_txtinput_short" type="text" value="<tpl> $url2 </tpl>" />+
	<input name="url3" id="url3" class="zhl_txtinput_short"  type="text" value="<tpl> $url3 </tpl>" />+
	<input name="url4" id="url4" class="zhl_txtinput_short"  type="text" value="<tpl> $url4 </tpl>" />
	</td>
	<td width="100"></td>
	</tr>
	<tr>
		<th><tpl> $langSysSPleaseSelectTime </tpl>：</th>
		<td><input name="time" type="radio" value="1" <tpl> if $time eq '1' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSNonceWeek </tpl>
		<input name="time" type="radio" value="2" <tpl> if $time eq '2' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSUpWeek </tpl>
		<input name="time" type="radio" value="3" <tpl> if $time eq '3' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSNonceMonth </tpl>
		<input name="time" type="radio" value="4" <tpl> if $time eq '4' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSUpMonth </tpl>
		<input name="time" type="radio" value="5" <tpl> if $time eq '5' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSLatelyThirtyDay </tpl></td>
		<td width="100"><span class="btn_left"><input name="submit" class="btn_submit" type="submit" value="<tpl> $langSysSBeginContrast </tpl>" /></span></td>
	</tr>
	<tr>
	<th><tpl> $langSysSNonceTimeSegment </tpl>：</th><td><tpl> $end_time </tpl> <tpl> $langSysSTo </tpl> <tpl> $start_time </tpl></td></tr></table>
</form>
<table width="680" border="0" style="float:left; clear:both" cellspacing="0" cellpadding="0" >
 <tr>
        <td colspan="3" width="680" style="height:6px; background-color: #E6F5FF;"></td>
  </tr>
</table>
<table class="from_table2_one top-1">
  <thead>
   <tr class="area_ajax_list_title">
    <th class="pd-left" class="zhl_th1"><tpl> $langSysSTimeSegment </tpl></th>
    <th class="zhl_th1"><tpl> $langSysSParticularPage </tpl></th>
	<th class="zhl_th1">PV</th>
	<th class="zhl_th1"><tpl> $langSysSPercent </tpl></th>
  </tr>
  </thead>
  <tr>
  	<td class="pd-left" align="left"><tpl> $langSysSTotalize </tpl></td>
    <td align="left">　
		<tpl> if $url1 neq '' </tpl><div>URL.1 - <tpl> $url1 </tpl></div><tpl> /if </tpl>
		<tpl> if $url2 neq '' </tpl><div>URL.2 - <tpl> $url2 </tpl></div><tpl> /if </tpl>
		<tpl> if $url3 neq '' </tpl><div>URL.3 - <tpl> $url3 </tpl></div><tpl> /if </tpl>
		<tpl> if $url4 neq '' </tpl><div>URL.4 - <tpl> $url4 </tpl></div><tpl> /if </tpl>
	</td>
	<td align="left">　
		<tpl> foreach from=$num_sum item=num </tpl>
			<div><tpl> $num </tpl></div>
		<tpl> /foreach </tpl>
	</td>
	<td align="left">100%</td>
  </tr>
  <tpl> foreach from=$from_array item=one key=key </tpl>
	  <tr>
		<td align="left"><tpl> $key </tpl></td>
		<td align="left">　
			<tpl> if $url1 neq '' </tpl><div>URL.1</div><tpl> /if </tpl>
			<tpl> if $url2 neq '' </tpl><div>URL.2</div><tpl> /if </tpl>
			<tpl> if $url3 neq '' </tpl><div>URL.3</div><tpl> /if </tpl>
			<tpl> if $url4 neq '' </tpl><div>URL.4</div><tpl> /if </tpl>
		</td>
		<td align="left">
		　	
		  <tpl> foreach from=$one item=two </tpl>
				<div><tpl> $two.pv </tpl></div>
			<tpl> /foreach </tpl>
		</td>
		<td align="left">　
			<tpl> foreach from=$one item=two key=key </tpl>
				<tpl> if $num_sum[$key] neq '0' </tpl>
					<div><tpl> $two.pv/$num_sum[$key]*100|string_format:'%.2f' </tpl>%</div>
				<tpl> else </tpl>
					<div>0.00%</div>
				<tpl> /if </tpl>
			<tpl> /foreach </tpl>
		</td>
	  </tr>
  <tpl> /foreach </tpl>
</table>
<script language="javascript" type="text/javascript">
function ajax_list(){
	/* 取表单参数 */var queryString=$("#form_p_list").formSerialize();

	$.ajax({
		url: "statics_from.manage.php",
		data: queryString,
		type:'post',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}

/* 切换页面 */function ajax_link(){
	$.ajax({
		url: "statics_from.manage.php",
		data: 'action=list',
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>